import React from 'react';
import Earth from './earth'
import '../Styles/index.css'

class Index extends React.Component {
  hanldeToExit = () => {
    console.log(this);
    this.props.history.push('/');
  }
  render() {
    return (
      <div className="login-page">
        <div className="login-container">
          <h2>态势展示系统</h2>
          <span onClick={() => { this.hanldeToExit() }}>退出系统</span>
        </div>
        <div className='earth'>
          <Earth />
        </div>
      </div>
    )
  }
}

export default Index;

